package com.baidumap.administrator.happystudy.module.fenlei.model;

import com.ab.util.AbJsonUtil;

import java.util.List;

/**
 * 描述：
 * 作者：xiaoxing on 17/4/19 00:01
 * 邮箱：2235445233@qq.com
 */
public class Category {

    /**
     * code : 200
     * msg : success
     * data : [{"type_id":"49","type_name":"化妆品","shop_id":"0","uid":null,"type_logo":"/Uploads/2017-04-05/58e45665e570c.jpg","t_id":"0","community_id":null},{"type_id":"198","type_name":"超市","shop_id":"0","uid":null,"type_logo":null,"t_id":"0","community_id":null},{"type_id":"199","type_name":"餐饮","shop_id":"0","uid":null,"type_logo":null,"t_id":"0","community_id":null},{"type_id":"200","type_name":"鲜花蛋糕","shop_id":"0","uid":null,"type_logo":null,"t_id":"0","community_id":null},{"type_id":"201","type_name":"下午茶","shop_id":"0","uid":null,"type_logo":null,"t_id":"0","community_id":null},{"type_id":"202","type_name":"水果生鲜","shop_id":"0","uid":null,"type_logo":null,"t_id":"0","community_id":null}]
     */

    private String code;
    private String msg;
    private List<DataBean> data;

    /**
     * 用json构造自己
     *
     * @param json
     */
    public Category(String json) {
        Category result = AbJsonUtil.fromJson(json, this.getClass());
        this.code = result.getCode();
        this.msg = result.getMsg();
        this.data = result.getData();

    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * type_id : 49
         * type_name : 化妆品
         * shop_id : 0
         * uid : null
         * type_logo : /Uploads/2017-04-05/58e45665e570c.jpg
         * t_id : 0
         * community_id : null
         */

        private String type_id;
        private String type_name;
        private String shop_id;
        private Object uid;
        private String type_logo;
        private String t_id;
        private Object community_id;

        public String getType_id() {
            return type_id;
        }

        public void setType_id(String type_id) {
            this.type_id = type_id;
        }

        public String getType_name() {
            return type_name;
        }

        public void setType_name(String type_name) {
            this.type_name = type_name;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public Object getUid() {
            return uid;
        }

        public void setUid(Object uid) {
            this.uid = uid;
        }

        public String getType_logo() {
            return type_logo;
        }

        public void setType_logo(String type_logo) {
            this.type_logo = type_logo;
        }

        public String getT_id() {
            return t_id;
        }

        public void setT_id(String t_id) {
            this.t_id = t_id;
        }

        public Object getCommunity_id() {
            return community_id;
        }

        public void setCommunity_id(Object community_id) {
            this.community_id = community_id;
        }
    }
}
